package kjx_test_security.auth;

import kjx_test_security.auth.entity.KcAuthUserModel;
import kjx_test_security.tools.SecurityUtils;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @Author 康1919
 * @Date 2024/7/20 9:19
 */
@Service
public class KCUserService implements UserDetailsService {
    @Override
    public KcAuthUserModel  loadUserByUsername(String username) throws UsernameNotFoundException {

        return ExampleUser.getExampleUser(true);
    }
}
